#ifndef GETVIDEOTHREAD_H
#define GETVIDEOTHREAD_H

#include <QObject>
#include <QThread>
#include <QImage>

#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <opencv2/opencv.hpp>


/* 使用命名空间cv下的VideoCapture与Mat类 */
namespace cv {
class VideoCapture;
class Mat;
}

class GetVideoThread : public QThread
{
    Q_OBJECT
public:
    explicit GetVideoThread(QObject *parent = nullptr);
    void run() override; //重写运行函数

signals:
    void imgReturned(QImage *img);

};

#endif // GETVIDEOTHREAD_H
